import request from "@/utils/request.js";
/**
 * 列表查询
 * @param params
 */
export const supplyChainPage = query => {
  return request({
    url: `/purchase/supplyChain/manage/page`,
    method: "get",
    params: query
  });
};
/**
 * 添加开拓人员
 * @param params
 */
export const supplyChainAdd = data => {
  return request({
    url: "/purchase/supplyChain/manage/add",
    method: "post",
    data
  });
};

/**
 * 查询开拓人员详情
 * @param params
 */
export const supplyChainDetail = introducerTenantId => {
  return request({
    url: `/purchase/supplyChain/manage/detail/${introducerTenantId}`,
    method: "get"
  });
};

/**
 * 编辑开拓人员
 * @param params
 */
export const edit = data => {
  return request({
    url: `/purchase/supplyChain/manage/edit/${data.introducerTenantId}`,
    method: "post",
    data
  });
};
